package com.authenticateCenter.service;

import com.authenticateCenter.domain.entity.AuthorityModule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.concurrent.ExecutionException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 大忽悠
 * @since 2022年10月19日
 */
public interface IAuthorityModuleService extends IService<AuthorityModule> {

    void removeAuthorityModule(Integer authorityModuleId, IAuthorityService iAuthorityService, IRoleAuthorityService iRoleAuthorityService) throws ExecutionException, InterruptedException;

    void releaseAuthorityModuleToRole(Integer roleId, Integer authorityModuleId);

    void revokeAuthorityModuleToRole(Integer roleId, Integer authorityModuleId);
}
